import './CommonCharts.scss'
import { Tabs } from "antd"
import { useEventEmitter } from 'ahooks'
import { FormTempMapping } from '../../Utils/FormTemp'
import { ChartsConfig } from '../../Config/ChartsConfig'
import { useState } from 'react'

const ChartsTabsMapping = (FORMEVENT, chart, onCallBack) => ({
    Chart01: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0107', label: '指示器',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromCrosshair} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0108', label: '合计设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTotalLabel} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0109', label: '标注线',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0110', label: '标注点',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0111', label: '滚动条',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromScrollBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0112', label: '图元设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0113', label: '折线&面积图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0114', label: '折线&面积标签',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLineLabel} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart02: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0107', label: '指示器',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromCrosshair} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0108', label: '合计设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTotalLabel} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0109', label: '标注线',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0110', label: '标注点',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0111', label: '滚动条',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromScrollBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0112', label: '柱图图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0113', label: '柱图背景',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBarBack} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart03: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC03} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0107', label: '指示器',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromCrosshair} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0108', label: '合计设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTotalLabel} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0109', label: '标注线',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0110', label: '标注点',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0111', label: '滚动条',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromScrollBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0112', label: '柱图图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0113', label: '柱图背景',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBarBack} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart04: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC03} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA01} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0107', label: '指示器',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromCrosshair} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0108', label: '合计设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTotalLabel} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0109', label: '标注线',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0110', label: '标注点',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromMarkPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0111', label: '滚动条',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromScrollBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0112', label: '柱图图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBar} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0113', label: '柱图背景',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromBarBack} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart05: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC05} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0501', label: '饼图原图',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPie} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart06: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC06} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0501', label: '玫瑰图图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromRose} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart07: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC07} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0105', label: '标签设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLabelA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0112', label: '图元设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPoint} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0113', label: '雷达图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLine} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart08: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC08} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0801', label: '循环色板',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromCircular} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0802', label: '测量色板',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromGauge} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0803', label: '指针设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPointer} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0804', label: '指针圆点',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPin} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0805', label: '指针背景',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromPinBackground} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart09: [
        {
            key: 'C0100', label: '字段设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC01Field} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC09} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0102', label: '轴设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromAxesA02} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0104', label: '图例设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromLegends} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0106', label: '提示设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTooltip} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0901', label: '进度图元',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromProgress} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ],
    Chart10: [
        {
            key: 'C0101', label: '基础设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromC10} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0103', label: '标题设置',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromTitle} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
        {
            key: 'C0502', label: '指标卡',
            children: <FormTempMapping formItem={ChartsConfig.ChartsFromIndicator} FORMEVENT={FORMEVENT} Initial={chart} NotLoading onCallBack={onCallBack} />
        },
    ]
})

const CommonCharts = ({ data, Off }) => {
    const { type, i, Initial, DateEvent, onCallBack } = data
    const [Data, setData] = useState(Initial)
    const FORMEVENT = useEventEmitter()
    FORMEVENT.useSubscription(val => {
        setData({ ...Data, ...val.data })
        DateEvent.emit({ type: 'onFormBack', data: { i, ...Data, ...val.data } })
    })


    return (
        <div className="CommonCharts">
            <Tabs
                tabPosition='left'
                items={ChartsTabsMapping(FORMEVENT, Initial, onCallBack)[type]}
            />
        </div>
    );
};

export default CommonCharts;